import {Injectable} from '@angular/core';
import {HttpService} from '../../../core/http.service';
import {CommHttpService} from '../../../core/comm.http.service';
import {SERVERS_NAME} from '../../../config/config';
import {Observable} from 'rxjs';

@Injectable()
export class SupervisionEvaluateService extends CommHttpService {
    protected  preUrl = `${SERVERS_NAME.EVALUTE_SERVER}evalute/superviseExam/`;

    constructor(protected http: HttpService) {
        super(http);
    }

  /**********接口部分**********/

  /**
 * 查询学年列表
 */
  year(): Observable<any> {
    return this.http.post({}, `${SERVERS_NAME.SECURITY_SERVER}sys/semester/list`);
  }

   /**
   * 获取评价列表
   */
  pageEvalute(data) {
    return this.http.post(data, `${this.preUrl}pageEvalute`);
  }

  /**
   * 获取评价信息
   */
  getEvaluateApi(data) {
    return this.http.post(data, `${this.preUrl}getEvalute`);
  }

  /**
   * 删除课程评价
   * @param param：param
   */
  delete(param: any): Observable<any> {
    return this.http.post(param, this.preUrl + `delete`);
  }

}
